// 封装用户注册登录接口
import request from '@/utils/request.js'

// 用户注册
export const userRegisterService = ({ username, password }) => {
  return request({
    url: '/register',
    method: 'POST',
    data: {
      username,
      password
    }
  })
}

// 用户登录
export const userLoginService = ({ username, password }) => {
  return request({
    url: '/login',
    method: 'POST',
    data: {
      username,
      password
    }
  })
}
